import type { KttGuessInstance } from '@/types/component'
import { ref } from 'vue'

/**
 *
 * @returns 猜你习惯组合式函数
 */
export const useGuessList = () => {
  //获取猜你习惯组件的实例
  const guessRef = ref<KttGuessInstance>()

  //获取滚动触底事件
  const onScrolltolower = () => {
    guessRef.value?.getMore()
  }

  return { guessRef, onScrolltolower }
}
